import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
import { PagerModule } from '../../component/pager/pager.module';
import { NewsComponent } from './news.component';
import { NewsService } from '../../service/news.service';
import { NewsInfoComponent } from './newsInfo.component';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { PageHeaderModule } from '../../component/pageHeader/pageHeader.module';
import { DateTimePickerModule } from '../../component/datetimepicker/datetimepicker.module';
import { NewsEditComponent } from './newsEdit.component';
import { EditorModule } from '../../component/editor/editor.module';

@NgModule({
    imports: [
        CommonModule,
        FormsModule,
        PagerModule,
        PageHeaderModule,
        DateTimePickerModule,
        EditorModule
    ],
    schemas: [
        CUSTOM_ELEMENTS_SCHEMA
    ],
    declarations: [
        NewsComponent,
        NewsInfoComponent,
        NewsEditComponent
    ],
    providers: [NewsService],
})
export class NewsModule { }
